package com.weixin.paleituo.adapter;

import android.content.Context;
import android.widget.ImageView;
import android.widget.TextView;

import com.weixin.paleituo.R;
import com.weixin.paleituo.base.ComAdapter;
import com.weixin.paleituo.bean.ProductListBean;
import com.weixin.paleituo.help.ViewHolder;

import java.util.List;

/**
 * Author yichao
 * Time  2018/3/15 14:51
 * Dest  生活缴费
 */

public class LivingPaymentGridAdapter extends ComAdapter<ProductListBean> {
    public LivingPaymentGridAdapter(Context mContext, List<ProductListBean> mData) {
        super(mContext, mData, R.layout.item_image_living_payment);
    }
    @Override
    public void convert(ViewHolder holder, ProductListBean item, int position) {
        ImageView imageView= holder.getItemView(R.id.iv_imag_item_image);
imageView.setImageResource(item.getImgUrl());
      TextView textView= holder.getItemView(R.id.tv_name);
      textView.setText(item.getProName());
    }
}
